package com.chinasoft.ms.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RentalDTO {
    private static final long serialVersionUID = 1L;

    /**
     * 租赁ID
     */
    private Long id;

    /**
     * 车辆ID
     */
    private Long carId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 租赁开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date rentalStart;

    /**
     * 租赁结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date rentalEnd;

    /**
     * 续租次数
     */
    private Integer extensionCount;

}
